﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="GUESTSMANAGEMENT.Login" %>
<%@ Register assembly="Coolite.Ext.Web" namespace="Coolite.Ext.Web" tagprefix="ext" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Guest Management</title>
</head>
<body>
    <form id="form1" runat="server">
        <ext:ScriptManager ID="ScriptManager" runat="server" />
        
        <ext:Window 
            ID="Window" 
            runat="server" 
            Closable="false"
            Resizable="false"
            Height="150" 
            Icon="Lock" 
            Title="Login"
            Draggable="false"
            Width="350"
            Modal="true"
            BodyStyle="padding:5px;">
            <Body>
                <ext:FormLayout ID="FormLayout1" runat="server">
                    <ext:Anchor Horizontal="100%">
                        <ext:TextField 
                            ID="txtUsername" 
                            Enabled="true"
                            runat="server" 
                            ReadOnly="false"
                            FieldLabel="Identificador" 
                            AllowBlank="false"
                            BlankText="É necessário um Login."
                            Text="Identificador"
                            />
                    </ext:Anchor>
                    <ext:Anchor Horizontal="100%">
                        <ext:TextField 
                            ID="txtPassword" 
                            runat="server" 
                            ReadOnly="false"
                            InputType="Password" 
                            FieldLabel="Senha" 
                            AllowBlank="false" 
                            BlankText="É necessário uma Senha."
                            Text="Senha"
                            />
                    </ext:Anchor>
                </ext:FormLayout>
            </Body>
            <Buttons>
                <ext:Button ID="buttonLogin" runat="server" Text="Login" Icon="Accept">
                    <AjaxEvents>
                        <Click OnEvent="Teste" Success="Window.close();">
                            <EventMask ShowMask="true" Msg="Verificando..." MinDelay="1000" />
                        </Click>
                    </AjaxEvents>
                </ext:Button>
            </Buttons>
        </ext:Window>
    </form>
</body>
</html>